<script setup lang="ts">

</script>

<template>
  <div class="why_wrapper">
    <h2 class="title">为什么选择蓝名</h2>
    <h3 class="subtitle">互联网10年经验，10,000,000+用户的信赖选择</h3>
    <div class="container">
      <ul class="clear">
        <li>
          <i class="why_icon why_icon1"></i>
          <h3>品牌影响</h3>
          <p>连续10年为900,000+用户提供优质域名服务</p>
          <p>累计成交域名10,000,000+个</p>
        </li>
        <li>
          <i class="why_icon why_icon2"></i>
          <h3>行业地位</h3>
          <p>安徽省首家域名注册服务机构</p>                <p>拥有ICANN认证资质</p>
        </li>
        <li>
          <i class="why_icon why_icon3"></i>
          <h3>功能齐全</h3>
          <p>注册域名实惠</p>
          <p>抢注域名高效</p>
          <p>分类查询便捷</p>
        </li>
        <li>
          <i class="why_icon why_icon4"></i>
          <h3>服务支持</h3>
          <p>强大的技术团队</p>
          <p>安全的域名管理系统</p>
          <p>经验丰富的售后团队</p>
        </li>
      </ul>
    </div>
  </div>
</template>

<style scoped lang="scss">
.why_wrapper{
  width: 100%;
  padding: 50px 0;
  background-color: #F8F9FB;
  box-sizing: content-box;
  overflow: hidden;
}

.why_wrapper h2.title {
  margin-bottom: 15px;
  line-height: 1;
  font-size: 28px;
  color: #181C29;
  text-align: center;
  font-weight: 400;
}

.why_wrapper h3.subtitle{
  line-height: 1;
  color: #828897;
  text-align: center;
  font-weight:normal;
}

.why_wrapper .container{
  width: 1200px;
  margin: 50px auto 0;
}

.why_wrapper ul{
  margin-left: -30px;
}

.why_wrapper li{
  float: left;
  width: 196px;
  height: 280px;
  margin-left: 30px;
  padding: 20px 40px 30px;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  box-sizing: content-box;
}

.why_wrapper li:hover{
  background: #FFFFFF;
  box-shadow: 0px 6px 25px 0px rgba(195, 199, 203, 0.3);
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

.why_wrapper li .why_icon{
  display: block;
  margin: 0 auto;
  width: 140px;
  height: 140px;
  -webkit-animation: icons_anim_end 0.6s steps(20) both;
  animation: icons_anim_end 0.6s steps(20) both;
}

.why_wrapper li:hover .why_icon{
  -webkit-animation: icons_anim_start 0.6s steps(20) both;
  animation: icons_anim_start 0.6s steps(20) both;
}

.why_wrapper li .why_icon1{
  background: url(~/assets/imgs/why_icons1.png) no-repeat;
  background-position: 0 0;
  background-size: 140px;
}
.why_wrapper li .why_icon2{
  background: url(~/assets/imgs/why_icons2.png) no-repeat;
  background-position: 0 0;
  background-size: 140px;
}
.why_wrapper li .why_icon3{
  background: url(~/assets/imgs/why_icons3.png) no-repeat;
  background-position: 0 0;
  background-size: 140px;
}
.why_wrapper li .why_icon4{
  background: url(~/assets/imgs/why_icons4.png) no-repeat;
  background-position: 0 0;
  background-size: 140px;
}

.why_wrapper li h3{
  margin: 30px 0 20px;
  line-height: 1;
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  color: #181C29;
}

.why_wrapper li p{
  position: relative;
  line-height: 26px;
  padding-left: 50px;
  color: #666;
}

.why_wrapper li:nth-child(1) p,
.why_wrapper li:nth-child(2) p{
  padding-left: 12px;
}

.why_wrapper li:nth-child(3) p{
  padding-left: 50px;
}

.why_wrapper li:nth-child(4) p{
  padding-left: 30px;
}

.why_wrapper li p::before{
  position: absolute;
  top: 10px;
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  background-color: #666;
  margin-right: 10px;
}

.why_wrapper li:nth-child(1) p::before,
.why_wrapper li:nth-child(2) p::before{
  left: 0;
}

.why_wrapper li:nth-child(3) p::before{
  left: 36px;
}

.why_wrapper li:nth-child(4) p::before{
  left: 18px;
}


@-webkit-keyframes icons_anim_start{
  0% {
    background-position-y: 0;
  }
  100% {
    background-position-y: -2800px;
  }
}
@keyframes icons_anim_start{
  0% {
    background-position-y: 0;
  }
  100% {
    background-position-y: -2800px;
  }
}

@-webkit-keyframes icons_anim_end{
  0% {
    background-position-y: -2800px;
  }
  100% {
    background-position-y: 0;
  }
}
@keyframes icons_anim_end{
  0% {
    background-position-y: -2800px;
  }
  100% {
    background-position-y: 0;
  }
}
.clear{
  zoom:1;
}
</style>